package com.cskaoyan.mapper;

import com.cskaoyan.bean.po.MarketCategory;
import com.cskaoyan.bean.po.MarketCategoryExample;
import com.cskaoyan.bean.vo.front.goodsvo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCategoryMapper {
    long countByExample(MarketCategoryExample example);

    int deleteByExample(MarketCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCategory record);

    int insertSelective(MarketCategory record);

    List<MarketCategory> selectByExample(MarketCategoryExample example);

    MarketCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCategory record, @Param("example") MarketCategoryExample example);

    int updateByExample(@Param("record") MarketCategory record, @Param("example") MarketCategoryExample example);

    int updateByPrimaryKeySelective(MarketCategory record);

    int updateByPrimaryKey(MarketCategory record);

    List<Integer> getIds(Integer id);

    List<Channel> selectCategory(boolean b);

    List<FloorGoodsList> selectFloorGoods(@Param("b") boolean b, @Param("value") Integer value);


    Integer selectPid(Integer id);


    List<MarketCategory> selectCategoryListById(int id);

    MarketCategory selectParentCategory(Integer id);

    Integer selectPidById(Integer id);

    MarketCategory selectCurrentCategory(Integer id);

    List<FilterCategoryVo> selectFilterCategoryById(String L2);


    List<FilterCategoryVo> selectFilterCategoryById1(Integer categoryId);

    List<FilterCategoryVo> selectFilterCategoryById2(Integer categoryId);

    FilterCategoryVo selectCategoryByGoodsId(Integer id);
}